#include<iostream>
using namespace std;
#include<unistd.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<fcntl.h>
#include<cstring>
#include<sys/stat.h>
#include<errno.h>
#include<string>
#include<cassert>

#define PATH_NAME "./zq_namepipe"

bool creatfifo(const string& path){
    umask(0);
    int ret = mkfifo(path.c_str(),0666);
    if(ret == 0) return true;
    else{
        cout<<"errno:"<<errno<<"string err:"<<strerror(errno)<<endl;
        return false;
    }
}


void removefifo(const string& path){
    int ret = unlink(path.c_str());
    assert(ret == 0);
    (void)ret;
}